home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-06-27 | 1.6 KB | 60 lines |
- # noImakefile
- #
- # This is a simple makefile provided for the convenience of those
- # unfortunate users who don't have Imake. If at all possible, use
- # Imakefile instead.
-
- # This makefile is for X11R4 or newer. It assumes you have the
- # Andrew widget library (Xaw).
- #
- # Users of pre-X11R4 systems and systems that lack the
- # Xaw library should remove -lXaw -lXmu, and -lXext from XLIBS,
- # the "menu" and "label" modules from SRCS and OBJS, and
- # all the R4_DEFINES below.
-
- R4_DEFINES = -DR4 -DMENU -DLABEL
-
- # Name of program to make
- TARGET=xms
-
- CC=cc
- LD=$(CC)
-
- CFLAGS= -O -I../lib
- LDFLAGS=
-
- XLIBS= -lXaw -lXmu -lXt -lXext -lX11
-
- SRCS= Ms.c main.c Mama.c menu.c label.c xio.c
- OBJS= Ms.o main.o Mama.o menu.o label.o xio.o
-
- MSLIB= ../lib/libms.a
-
- $(TARGET): $(OBJS) $(MSLIB)
- $(LD) $(LDFLAGS) $(OBJS) $(MSLIB) $(XLIBS) -lm -o $(TARGET)
-
- Mama.o: Mama.c Mama.h MamaP.h Ms.h backward.h ../lib/ms_real.h ../lib/ms_ipc.h ../lib/work.h ../lib/io.h
- $(CC) $(CFLAGS) $(R4_DEFINES) Mama.c -c
-
- Ms.o: Ms.c Ms.h MsP.h Mama.h ../lib/ms_job.h backward.h ../lib/mspawn.h ../lib/ms_real.h ../lib/datarep.h
- $(CC) $(CFLAGS) $(R4_DEFINES) Ms.c -c
-
-
- xio.o: xio.c
- $(CC) $(CFLAGS) $(R4_DEFINES) xio.c -c
-
- main.o: main.c Mama.h Ms.h backward.h ../lib/version.h
- $(CC) $(CFLAGS) $(R4_DEFINES) main.c -c
-
- menu.o: menu.c Ms.h MsP.h Mama.h ../lib/datarep.h ../lib/mspawn.h ../lib/ms_job.h ../lib/ms_real.h
- $(CC) $(CFLAGS) $(R4_DEFINES) menu.c -c
-
- label.o: label.c Ms.h MsP.h Mama.h ../lib/datarep.h ../lib/mspawn.h ../lib/ms_job.h ../lib/ms_real.h
- $(CC) $(CFLAGS) $(R4_DEFINES) label.c -c
-
- clean:
- rm -f $(OBJS) core *~
-
- spotless: clean
- rm -f $(TARGET) Makefile.bak
-